varying vec4 vVertex;
varying vec3 vNormal;
varying vec3 vLightPos;

varying vec4 vColor;
void main()
{
	vColor = gl_Color;
	vVertex = gl_ModelViewMatrix*gl_Vertex;
	vNormal = normalize(gl_NormalMatrix*gl_Normal);
	vLightPos = gl_LightSource[0].position.xyz;

	gl_TexCoord[0] = gl_MultiTexCoord0;
	gl_Position = ftransform();
}